package com.sxg.vo.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sxg.utils.DateUtils;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class AddressSaveReqVo {

    private Long id;

    @NotNull(message = "收获人名称不能为空")
    private String name;

    @NotNull(message = "手机号不能为空")
    private String phone;

    @NotNull(message = "省不能为空")
    private String province;

    @NotNull(message = "市不能为空")
    private String city;

    @NotNull(message = "县不能为空")
    private String country;

    private String town;

    @NotNull(message = "详细地址不能为空")
    private String detail;

    private String isDefault;

    private Long userId;

    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date createTime;

    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date updateTime;


}
